<?php defined('SYSPATH') or die('No direct access allowed.');

class Model_User_Additional extends ORM {

	// Relationships
	protected $_belongs_to = array('user' => array());
        

	/**
	 * Filters to run when data is set in this model. In this case all fields 
	 * will use xss cleaner.
         * 
	 * @return array Filters
	 */
        
	public function filters()
	{
		return array(
			'achievements' => array(
                                //xss clean
				array(array('Security', 'xss_clean'))
			),
                        'courses' => array(
                                array(array('Security', 'xss_clean'))
                        ),
                        'organizations' => array(
				array(array('Security', 'xss_clean'))
			),
                        'languages' => array(
                                array(array('Security', 'xss_clean'))
                        ),
                        'interests' => array(
				array(array('Security', 'xss_clean'))
			),                        
		);
	}

	/**
	 * Labels for fields in this model
	 *
	 * @return array Labels
	 */
	public function labels()
	{
		return array(
			'achievments'        => __('Achievments'),
			'courses'            => __('Completed courses'),
			'organizations'      => __('Organizations'),
                        'languages'          => __('Languages'),
			'interests'          => __('Interests'),
		);
	}
}